<?php
$dis_id=2;
include("../../inc/conn.inc");
include("../islogin.php");
?>
<?php
if($_GET['del_act']){
mysql_query("delete from web_list where member_id='".$_COOKIE['user_id']."' and id='".$_GET['del_id']."'");

echo "<script>location='costom_type.php'</script>";
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心-三帝贸易网</title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/left.js"></script>
<body>
<div id="mian">
<?php include("../inc/top.php");?>
<div class="top1"><span>您当前位置：<a href="../index.php" class="dh">会员助手</a> &gt;&gt; 企业网站配置 &gt;&gt; 自定义网站列表分类</span></div>
<div class="left">
<?php include("../inc/left.php");?>
</div>
<div class="right">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
   <TR>
     <TD height="40" bgcolor="#EFF6FF" style="font-size:18px;font-weight:bold;padding-left:8px;">自定义网站列表分类</TD>
   </TR>
</TABLE>
<br>
<font color="#FF0000">注：此功能对钻石会员开放</font>
<br>
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#C1DCF5">
        <tr>
          <td width="18%" height="35" align="center" bgcolor="#EFF6FF">编号</td>
          <td width="63%" align="center" bgcolor="#EFF6FF">分类名称 </td>
          <td width="19%" align="center" bgcolor="#EFF6FF"><a href="costom_type_modify.php">添加新列表</a></td>
        </tr>
		<?php
		$rs=mysql_query("select id,w_name from web_list where member_id='".$_COOKIE['user_id']."' order by id");
		$i=1;
		while($row=mysql_fetch_array($rs)){
		?>
        <tr>
          <td height="25" align="center" bgcolor="#FDFEFF"><?=$i?></td>
          <td height="25" align="center" bgcolor="#FDFEFF"><?=$row[w_name]?></td>
          <td height="25" align="center" bgcolor="#FDFEFF"><a href="costom_type.php?del_act=ok&del_id=<?=$row['id']?>" onClick="return del()">删除</a></td>
        </tr>
		<?php $i++;}?>
</table>
</div>
<div class="onl"></div>
<?php include("../inc/foot.php");?>
</div>
</body>
</html>

<script language="javascript">
function del(){
if(confirm("确定要删除该信息!"))
return true;
else
return false;

}
</script>